[Manager Summary]

PMSetCopies


Sets the default value to be displayed in the print dialog box for the number of copies to be printed.
OSStatus PMSetCopies(PMPrintSettings printSettings, UInt32 copies, Boolean lock)
PARAMETERS
printSettings
A PMPrintSettings previously created by your application for the current printing session. On return, this object is updated to reflect the number of copies you specify in the copies parameter.
copies
The number of copies to be printed that you want the print dialog box to display.
lock
A Boolean value. Pass TRUE if you wish to lock the number-of-copies field in the print dialog box.
function result
Passing TRUE in the lock parameter effects only printer drivers for Mac OS X and LaserWriter printer drivers version 8.7 or later. If you pass TRUE for any other printer driver, this function returns the result code kPMLockIgnored.
CARBON PORTING NOTES
 The PMSetCopies function replaces the Printing Manager opcode kPrinterDirectOpCode in kPDVerifySelect mode, and sets information formerly stored in the iCopies field of the Printing Manager structure TPrJob.

Last modified: 5/7/99. Status: Draft Copyright 1999 Apple Computer, Inc. All rights reserved.